package project.newCode.lights;
import project.hulpPakket.Color3f;
import project.hulpPakket.Point3f;
import project.hulpPakket.Vector3f;

public class PointLight extends Light {
	private Point3f origin;

	public PointLight(Color3f color, float intensity, Point3f origin) {
		super(color, intensity);
		this.origin = origin;
	}
	public Point3f getOrigin() {
		return origin;
	}
	public void setOrigin(Point3f origin) {
		this.origin = origin;
	}

	//obsolete!

	@Override
	public Vector3f getDirection( Point3f intersection) {
		Vector3f l = Point3f.Min(origin,intersection);
		return l;
	}
	

}
